package com.aioz.security.common.enmus;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;


public enum SexEnum implements IEnum<Integer> {

    MAN(1,"男"),
    WOMAN(2,"女"),
    PRIVACY(0, "保密");

    @EnumValue
    private Integer code;
    private String name;

    SexEnum(Integer code,String name){
        this.code = code;
        this.name = name;
    }

    @Override
    public Integer getValue() {
        return code;
    }

    public String getName(){
        return this.name;
    }


    @Override
    public String toString() {
        return "SexEnum{" +
                "code=" + code +
                ", name='" + name + '\'' +
                '}';
    }
}
